package com.xydtech.workflow.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xydtech.workflow.mapper.WflSteplogicMapper;
import com.xydtech.workflow.domain.WflSteplogic;
import com.xydtech.workflow.service.IWflSteplogicService;
import com.xydtech.common.core.text.Convert;

/**
 * 流程节点逻辑配置Service业务层处理
 * 
 * @author JHON
 * @date 2021-06-07
 */
@Service
public class WflSteplogicServiceImpl implements IWflSteplogicService 
{
    @Autowired
    private WflSteplogicMapper wflSteplogicMapper;

    /**
     * 查询流程节点逻辑配置
     * 
     * @param logicId 流程节点逻辑配置ID
     * @return 流程节点逻辑配置
     */
    @Override
    public WflSteplogic selectWflSteplogicById(Long logicId)
    {
        return wflSteplogicMapper.selectWflSteplogicById(logicId);
    }

    /**
     * 查询流程节点逻辑配置列表
     * 
     * @param wflSteplogic 流程节点逻辑配置
     * @return 流程节点逻辑配置
     */
    @Override
    public List<WflSteplogic> selectWflSteplogicList(WflSteplogic wflSteplogic)
    {
        return wflSteplogicMapper.selectWflSteplogicList(wflSteplogic);
    }

    /**
     * 新增流程节点逻辑配置
     * 
     * @param wflSteplogic 流程节点逻辑配置
     * @return 结果
     */
    @Override
    public int insertWflSteplogic(WflSteplogic wflSteplogic)
    {
        return wflSteplogicMapper.insertWflSteplogic(wflSteplogic);
    }

    /**
     * 修改流程节点逻辑配置
     * 
     * @param wflSteplogic 流程节点逻辑配置
     * @return 结果
     */
    @Override
    public int updateWflSteplogic(WflSteplogic wflSteplogic)
    {
        return wflSteplogicMapper.updateWflSteplogic(wflSteplogic);
    }

    /**
     * 删除流程节点逻辑配置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWflSteplogicByIds(String ids)
    {
        return wflSteplogicMapper.deleteWflSteplogicByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除流程节点逻辑配置信息
     * 
     * @param logicId 流程节点逻辑配置ID
     * @return 结果
     */
    @Override
    public int deleteWflSteplogicById(Long logicId)
    {
        return wflSteplogicMapper.deleteWflSteplogicById(logicId);
    }
}
